package com.yu.crm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yu.crm.domain.pojo.CrmPatrolRecordInfo;
import com.yu.crm.mapper.CrmPatrolRecordInfoMapper;
import com.yu.crm.service.ICrmPatrolRecordInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 巡更流水详情表 服务实现类
 * </p>
 *
 * @author pan
 * @since 2020-09-23
 */
@Service
public class CrmPatrolRecordInfoService extends ServiceImpl<CrmPatrolRecordInfoMapper, CrmPatrolRecordInfo> implements ICrmPatrolRecordInfoService {

    @Override
    public List<CrmPatrolRecordInfo> findByPatrolRecordId(Long qrRecordId) {
        QueryWrapper<CrmPatrolRecordInfo> wrapper = new QueryWrapper<>();
        wrapper.eq("qr_record_id", qrRecordId);
        return this.list(wrapper);
    }
}
